@extends('backend.layouts.master')
@section('main')    
<!-- main content -->
<form method="post">
<div id="content" class="span9">
<div class="page-header">
  <h1><p class="icon-newspaper margin30"></p>Quản lý thông báo</h1>
  <div class="toolbar">
      <a href="content/add" class="btn btn-success">Thêm thông báo</a>
  </div>
</div>
      <div class="clearfix"></div>      
        <fieldset>
          <div class="form-group form-inline">
            <label class="sr-only"><h4>Tìm kiếm</h4></label>
            <label class="sr-only control-label" for="exampleInputEmail2"></label>
            <input type="text" class="form-control" id="title" name="title" placeholder="Tên thông báo" value=""/>
            <button type="submit" class="btn btn-info">Tìm</button>
            <button type="button" class="btn btn-warning" onclick="location.reload(true)">Xoá</button>
          </div>                                
        </fieldset>
      <div class="noidung">          
          <table class="table  table-hover">
            <thead>
              <tr>
                <!-- <th width="5%">#</th> -->
                <th width="25%">Tiêu đề</th>
                <th width="15%">Nội dung</th>
                <th width="15%">Ngày tạo</th>
                <th width="10%">Người tạo</th>
                <th width="10%">Hành động</th>
              </tr>
            </thead>
            <tbody>
            @foreach($articles as $k_articles)                                                          
              <tr>                                                    
                <td>{{$k_articles->tieude}}</td>
                <td>{{$k_articles->noidung}}</td>
                <td>{{$k_articles->ngaytao}}</td>
                <td>{{$k_articles->nguoitao}}</td>              
                <td class="">
                  <a href="content/edit/{{$k_articles->id}}" name='btn_edit' id='btn_edit'><p class='icon-edit2 btnedit'></p></a>
                  <a href="content/delete/{{$k_articles->id}}" name='btn_del' id='btn_del' onclick="return confirm('Bạn có thực sự muốn xoá')"><p class='icon-delete btndel'></p></a>
                </td>
              </tr>
              @endforeach              
            </tbody>
          </table>                                     
      </div>
      <div class="pagination">{{$articles->links()}}</div>
  </div> 
</form> 
@stop
<!-- end main content -->    